﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace shopsoft.main
{
    public partial class ImageView : Form
    {
        #region Structure Method

        /// <summary>
        /// 构造函数
        /// </summary>
        public ImageView(Image image)
        {
            InitializeComponent();
            FormBorderStyle = FormBorderStyle.None;
            pictureBox1.Image = image;
            Size = image.Size;
        }

        /// <summary>
        /// 构造函数
        /// </summary>
        public ImageView(string title, Image image)
        {
            InitializeComponent();
            Text = title;
            pictureBox1.Image = image;
            Size = image.Size;
        }

        #endregion Structure Method
    }
}
